package net.digitalartwork.ui {
	import flash.display.*;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	import flash.utils.*;
	import flash.events.*;
	import flash.net.*;
	import flash.text.TextField;
	
	
	import gs.TweenFilterLite;
	import gs.OverwriteManager;
	import gs.easing.*;
	
	
	public class ViewModeThumb extends MovieClip{

		//--------------------------------------------------------------------------
		// ASSETS
		//--------------------------------------------------------------------------
		public var mc_bounds:MovieClip;
		public var time_text:TextField
		public var monthday_text:TextField
		public var year_text:TextField
		public var bg:MovieClip;
		//--------------------------------------------------------------------------
		// DISPATCH
		//--------------------------------------------------------------------------

		
		//--------------------------------------------------------------------------
		// Properties
		//--------------------------------------------------------------------------

		
		public function ViewModeThumb() {
			trace("ViewModeThumb Init");

			
			
			mc_bounds.alpha=0;
			bg.alpha = 0;
			//sortby_edit_btn.x = 74;
			//sortby_date_btn.x = sortby_edit_btn.x + sortby_edit_btn.width + _spacing;

			
		}
		public function viewModeDate(timeT:String, monthdayT:String, yearT:String) {
			time_text.visible = true;
			year_text.visible = true;
			monthday_text.visible = true;
			
			bg.visible = false;
			
			time_text.text = timeT;
			year_text.text = yearT;
			monthday_text.text = monthdayT;
		}
		
		public function viewModeColor(colorT:String="Blue"):void {
			time_text.visible = false;
			year_text.visible = false;
			monthday_text.visible = false;
			
			bg.visible = true;
			
			var theColor:Number;
			
			switch (colorT) { 
				
			    case "Blue" :
					theColor = 0x0066FF;
					break; 
			    case "Red" : 
					theColor = 0xFF0000;
					break; 
			    case "Yellow" : 
					theColor = 0xFFFF00;
					break;
				case "Green" :
					theColor = 0x00FF00;
					break;
				case "Purple" :
					theColor = 0xCC00FF;
					break;
			    default : 
			        trace("SunDraw: No ShapeType Defined"); 
				break;
				
			}
			
			TweenFilterLite.to(bg, .5, {alpha:.3, colorMatrixFilter:{colorize:theColor, amount:1}});
		}
		
		
		
	}
	
}